package com.ruoyi.auth.constants;

/**
 * 验证码主题
 */
public enum ValidateSubjectEnum {
    IMAGE("image", "图片验证码");

    private String code;// 审核状态
    private String des;// 审核状态

    private ValidateSubjectEnum(String code, String des) {
        this.code = code;
        this.des = des;
    }

    public String getCode() {
        return code;
    }

    public String getDes() {
        return des;
    }

    public static ValidateSubjectEnum getEnum(String status) {
        for (ValidateSubjectEnum e : ValidateSubjectEnum.values()) {
            if (e.getCode().equals(status)) {
                return e;
            }
        }
        return null;
    }
}
